/*
 * Copyright (c) 2019.  武汉中科图灵科技有限公司
 * Date :  2019/1/5
 * Author ：F12 Console=> atob("MzMxNDkxODAwQHFxLmNvbQ==")
 * Version ：1.6.2
 */

import request from '@/utils/request'

export function page(query) {
return request({
url: '/api/device/deviceAlDnRelation/pageList',
method: 'get',
params: query
})
}

export function addObj(obj) {
return request({
url: '/api/device/deviceAlDnRelation',
method: 'post',
data: obj
})
}

export function getObj(id) {
    return request({
    url: '/api/device/deviceAlDnRelation/get?id=' + id,
    method: 'get'
    })
}

export function delObj(id) {
return request({
url: '/api/device/deviceAlDnRelation/' + id,
method: 'delete'
})
}

export function putObj(obj) {
return request({
url: '/api/device/deviceAlDnRelation/updateOrAdd',
method: 'post',
data: obj
})
}
